<?php
include('DAL.php');

/*Sets up the Connections */
$Conn = App::getDB();
$logger = App::getLogger();

	class App {
		
		public static $Logger;
		
		public static function getLogger(){
			if (self::$Logger == null){
				self::$Logger = new Logger("test","");
			}
			return self::$Logger;
		}
		
		public static $DAL;
				
		public static function getDAL() {
			if (self::$DAL == null) {
				self::$DAL = new DAL("test","localhost","","root",DatabaseType::MySQL);
			}
			return self::$DAL;
		}
		
		public static function getDB() {
			return self::getDAL()->getInstance();
		}
		
		
	}
?>